import LDataGold from "./LDataGold";
export default class LDataGoldManager 
{
    public static dataList:LDataGold[] = [];
    public static GetDataById(index:number):LDataGold
    {    
        if(LDataGoldManager.dataList.length == 0){
            LDataGoldManager.dataList[0] = new LDataGold(0,"prop_gold_yellow.png",1,1,50);
            LDataGoldManager.dataList[1] = new LDataGold(1,"prop_gold_green.png",2,101,110);
            LDataGoldManager.dataList[2] = new LDataGold(2,"prop_gold_blue.png",5,126,150);
            LDataGoldManager.dataList[3] = new LDataGold(3,"prop_gold_deepblue.png",10,151,170);
            LDataGoldManager.dataList[4] = new LDataGold(4,"prop_gold_violet.png",50,171,200);
            LDataGoldManager.dataList[5] = new LDataGold(5,"prop_gold_red.png",100,201,10000);
        }
        return LDataGoldManager.dataList[index]
    }
}
